package com.daify.threadlearn.chapter01.order03;

/**
 * 非安全的数值生成器
 * @author daify
 * @date 2019-05-30
 */
public class UnsafeSequence {

    private static int value;

    public synchronized static int getNext() {
        return value++;
    }
}
